<div class="page">
	<div class="page-header">
		<h2><?php echo __('Itens Emprestimos');?>		<small><?php echo __('Itens Emprestimos');?></small></h2>
		<div class="page-header-fields">
					<?php echo $this->Html->link('<i class="icon-plus icon-white"></i>'.__('Add').' '.__('Itens Emprestimos'), array('action' => 'add'), array('escape' => false, 'class' => 'btn btn-primary')); ?>
		</div>
	</div>
	<div class="page-content">
		<table class="table table-bordered table-striped">
		<thead>
		<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('emprestimo_id');?></th>
			<th><?php echo $this->Paginator->sort('equipamento_id');?></th>
			<th class="actions"><?php echo __('Actions');?></th>
		</tr>
		</thead>
		<tbody>
<?php
		foreach ($emprestimos as $itensEmprestimo): ?>
		<tr>
			<td><?php echo h($itensEmprestimo['ItensEmprestimo']['id']); ?>&nbsp;</td>
			<td>
			<?php echo $this->Html->link($itensEmprestimo['Emprestimo']['id'], array('controller' => 'emprestimos', 'action' => 'view', $itensEmprestimo['Emprestimo']['id'])); ?>
		</td>
			<td>
			<?php echo $this->Html->link($itensEmprestimo['Equipamento']['descricao'], array('controller' => 'equipamentos', 'action' => 'view', $itensEmprestimo['Equipamento']['id'])); ?>
		</td>
			<td class="actions">
			<?php echo $this->Html->link('<i class="icon-share-alt  icon-white"></i>', array('action' => 'devolver', $itensEmprestimo['ItensEmprestimo']['id']), array('escape' => false, 'class' => 'btn btn-primary btn-mini')); ?>
			<?php echo $this->Html->link('<i class="con-refresh  icon-white"></i>', array('action' => 'renovar', $itensEmprestimo['ItensEmprestimo']['id']), array('escape' => false, 'class' => 'btn btn-primary btn-mini')); ?>
				
				<?php echo $this->Html->link('<i class="icon-eye-open icon-white"></i>', array('action' => 'view', $itensEmprestimo['ItensEmprestimo']['id']), array('escape' => false, 'class' => 'btn btn-primary btn-mini')); ?>
				<?php echo $this->Html->link('<i class="icon-pencil icon-white"></i>', array('action' => 'edit', $itensEmprestimo['ItensEmprestimo']['id']), array('escape' => false, 'class' => 'btn btn-primary btn-mini')); ?>
				<?php echo $this->Form->postLink('<i class="icon-trash icon-white"></i>', array('action' => 'delete', $itensEmprestimo['ItensEmprestimo']['id']), array('escape' => false, 'class' => 'btn btn-danger btn-mini'), __('Are you sure you want to delete # %s?', $itensEmprestimo['ItensEmprestimo']['id'])); ?>
			</td>
		</tr>
<?php endforeach; ?>
		</tbody>
		</table>
		<p>
<?php
		echo $this->Paginator->counter(array(
		'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
		));
		?>		</p>
	
		<div class="paging">
<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
		</div>
	</div>
	<div class="page-footer"></div>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Itens Emprestimo'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Emprestimos'), array('controller' => 'emprestimos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Emprestimo'), array('controller' => 'emprestimos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Equipamentos'), array('controller' => 'equipamentos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Equipamento'), array('controller' => 'equipamentos', 'action' => 'add')); ?> </li>
	</ul>
</div>
